package com.springboot2.mapper;

import com.springboot2.entity.Information;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface InformationMapper {
    //增
    void add(Information information);
    //删
    void del(int id);
    //改
    void update(Information information);
    //查 id
    Information findById(int id);
    //查 对象
    List<Information> findByPage(Map<String,Integer> map);
    //查 总数
    int count();

    List<Information> findByPageParams(Map<String, Object> map);

    int countParams(String title);
}
